<?php /* Smarty version Smarty-3.1.8, created on 2012-03-12 17:51:23
         compiled from ".\templates\qcm.tpl.php" */ ?>
<?php /*%%SmartyHeaderCode:158674f5a7c6a737c88-72315053%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '458d987bf199db8f412b3cc2f86216d2eb83ac27' => 
    array (
      0 => '.\\templates\\qcm.tpl.php',
      1 => 1331574681,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '158674f5a7c6a737c88-72315053',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_4f5a7c6a76dbb4_24758220',
  'variables' => 
  array (
    'qcmArray' => 0,
    'qcm' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4f5a7c6a76dbb4_24758220')) {function content_4f5a7c6a76dbb4_24758220($_smarty_tpl) {?>
<h1 class="title">Gestion des QCM </h1>

<div>
    <h2>Liste des QCM</h2>
    
</div>

<!--<a href="qcm/add"> Ajouter un QCM</a>-->
<a href="index.php?rub=qcm-add"> Ajouter un QCM</a>
<table>
    <tr>
        <th>QCM</th>
        <th>Nombre de question</th>
        <th>Modification</th>       
        <th>Consultation</th>
        <th>JSON</th>
    </tr>
 <?php  $_smarty_tpl->tpl_vars['qcm'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['qcm']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['qcmArray']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['qcm']->key => $_smarty_tpl->tpl_vars['qcm']->value){
$_smarty_tpl->tpl_vars['qcm']->_loop = true;
?>
    <tr>
        <td><?php echo $_smarty_tpl->tpl_vars['qcm']->value['libelle'];?>
</td>
        <td><?php echo $_smarty_tpl->tpl_vars['qcm']->value['nbQuestion'];?>
</td>
        <td><a href="index.php?rub=qcm&modif=<?php echo $_smarty_tpl->tpl_vars['qcm']->value['id'];?>
">Modifier</a></td>        
        <td><a href="index.php?rub=qcm&consulte=<?php echo $_smarty_tpl->tpl_vars['qcm']->value['id'];?>
">Consulter</a></td>
        <td><a href="qcm/<?php echo $_smarty_tpl->tpl_vars['qcm']->value['id'];?>
">G&eacute;nere</a></td>
    </tr>
<?php } ?>
</table>


<?php }} ?>